
*****************************************************************  TABLE 4 - Board vs. No Board  ********************************************************
*                         The code below generates the overall means and the diff. in means t-tests (Board vs. No Board) in Table 4:                    *
*********************************************************************************************************************************************************
*Overall means:
eststo: mean C3 C5 all_SH_ow_bel_025 tot_ins_ow
esttab using ".\Output\Tab4_means", cells("b(fmt(3))" )  replace
eststo clear

*The following generates and stores means by groups (Board vs. no-Board), their difference and the p-values:
estpost ttest C3 C5 all_SH_ow_bel_025 tot_ins_ow, by (DR) unequal 
esttab using ".\Output\Tab4ttest_DR", cells("mu_1(fmt(3)) mu_2 b(star) p" ) delimiter(" & ") varwidth(30) nonumber nomtitle l starlevels(+ 0.15 * 0.10 ** 0.05 *** 0.01)  replace 

*The following generates and stores the standard errors by groups (Board vs. no-Board): 
eststo clear
eststo: mean C3 C5 all_SH_ow_bel_025 tot_ins_ow, over(DR)
esttab using ".\Output\Tab4se_DR", cells("se(par fmt(3))" )  replace
eststo clear

*****************************************************************  TABLE 4 - SD vs. LD ******************************************************************
*                         The code below generates the diff. in means t-tests (Small den. vs. Large den.) in Table 4:                                   *
*********************************************************************************************************************************************************
*The following generates and stores means by groups (Small den. vs. Large den.), their difference and the p-values:
estpost ttest C3 C5 all_SH_ow_bel_025 tot_ins_ow, by (SD) unequal 
esttab using ".\Output\Tab4ttest_SD", cells("mu_1(fmt(3)) mu_2 b(star) p" ) delimiter(" & ") varwidth(30) nonumber nomtitle l starlevels(+ 0.15 * 0.10 ** 0.05 *** 0.01)  replace 

*The following generates and stores the standard errors by groups (Small den. vs. Large den.): 
eststo clear
eststo: mean C3 C5 all_SH_ow_bel_025 tot_ins_ow, over(Dstocksize_top3rd)
esttab using ".\Output\Tab4se_SD", cells("se( par fmt(3))" )  replace
eststo clear


